<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title>新增收货地址</title>
		<link rel="icon" href="img/favicon.ico" type="image/x-icon">
		<link rel="shortcut icon" href="img/favicon.ico" type="image/x-icon" />
		<script src="js/mui.min.js"></script>
		<link href="css/mui.min.css" rel="stylesheet" />
		<link rel="stylesheet" type="text/css" href="css/mui.picker.min.css"/>
		<link rel="stylesheet" type="text/css" href="css/common.css" />
		<link rel="stylesheet" type="text/css" href="css/index.css" />
		<script type="text/javascript" charset="utf-8">
			mui.init();
		</script>
	</head>

	<body class="bg_fa">
		<header class="mui-bar mui-bar-nav">
		    <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
		    <h1 class="mui-title" style="width: 50%;margin: auto;">我的收货地址</h1>
		    <a href="javascript:void(0);" class="right padding_10 red">保存</a>
		</header>
		<div class="mui-content bg_fa">
		    <div class="add">
		    	<div class="padding_10 bor_b">
		    		<label for="" class="color_99">收货人</label>
		    		<input type="text" name="" id="" value="" placeholder="请输入姓名" />
		    	</div>
		    	<div class="padding_10 bor_b">
		    		<label for="" class="color_99">手机号码</label>
		    		<input type="text" name="" id="" value="" placeholder="请输入手机号"/>
		    	</div>
		    	<div class="padding_10 bor_b">
		    		<label for="" class="color_99">所在地区</label>
		    		<input type="text" id="showCityPicker3" placeholder="请点击选择则" readonly>
		    	</div>
		    	<div class="padding_10 bor_b clearfix">
		    		<input type="text" class="address-xx" name="" id="" value="" placeholder="详细地址: 请输入您的详细地址, 如门牌号... " />
		    	</div>
		    	<div class="padding_10 bor_b">
		    		<!--<label for="" class="color_3">设为默认地址</label>-->
		    		<div class="mui-input-row">
		    		    <label>设为默认地址</label>
		    		    <div class="mui-switch mui-switch-mini">
							<div class="mui-switch-handle"></div>
						</div>
		    		</div>
		    	</div>
		    </div>
		</div>
	</body>

<script src="js/mui.picker.min.js"></script>
<script src="js/mui.poppicker.js"></script>
<script src="js/city.data-3.js"></script>
<script src="js/jquery-1.7.1.min.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
	
 (function($, doc) {
				$.init();
				$.ready(function() {
					/**
					 * 获取对象属性的值
					 * 主要用于过滤三级联动中，可能出现的最低级的数据不存在的情况，实际开发中需要注意这一点；
					 * @param {Object} obj 对象
					 * @param {String} param 属性名
					 */
					var _getParam = function(obj, param) {
						return obj[param] || '';
					};
						//级联示例
					var cityPicker3 = new $.PopPicker({
						layer: 3
					});
					cityPicker3.setData(cityData3);
					var showCityPickerButton = doc.getElementById('showCityPicker3');
					var cityResult3 = doc.getElementById('showCityPicker3');
					showCityPickerButton.addEventListener('tap', function(event) {
						cityPicker3.show(function(items) {
							cityResult3.value =  _getParam(items[0], 'text') + " " + _getParam(items[1], 'text') + " " + _getParam(items[2], 'text');
							//返回 false 可以阻止选择框的关闭
							//return false;
						});
					}, false);
				});
			})(mui, document);
</script>			